{% extends "base.html" %}
{% load i18n %}

{% block title %}
{% trans "Login" %}
{% endblock %}

{% block content %}
<h1>{% trans "Login" %}</h1>
{% if form.has_errors %}
<p class="error">Your username and password didn't match. Please try again.</p>
{% else %}
{% if next %}
<p class="error">You must be logged in to use this feature.</p>
{% endif %}
{% endif %}
<form action="/accounts/login/" method="post">
  <div>
  <label for="id_username">{% trans "Username" %}:</label>
  {{ form.username }}
  </div>
  <div>
  <label for="id_password">{% trans "Password" %}:</label>
  {{ form.password }}
  </div>
  <button type="submit">Login</button>
  <input type="hidden" name="next" value="{{ next }}" />
</form>
{% endblock %}
